#!/bin/bash
set -e

activate_path="./venv/bin/activate"

if [ -e ${activate_path} ]; then
    echo "[*] venv is created"
else
    echo "[*] venv creating"
    python3 -m venv venv
fi

# shellcheck disable=SC1090
source ${activate_path}

echo "[*] installing requirements"
pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple 

python3 "./start.py"

